package com.twu.biblioteca;

public class Movie extends Item {

    private final String director;
    private final int rating;

    public Movie(String name, int year, String director, int rating) {
        super(name, year, ItemType.MOVIE);
        this.director = director;
        this.rating = rating;
    }

    @Override
    public String toString() {
        return "name: " + this.getName() + "\tyearReleased= " + this.getYear() + "\tdirector: " + director + "\trating: " + rating + "/10";
    }
}
